package com.zhf.service;

import com.github.pagehelper.PageInfo;
import com.zhf.domain.ResponseResult;
import com.zhf.domain.Role;
import com.zhf.domain.User;
import com.zhf.domain.UserVo;

import java.util.List;

/**
 * @Author: ZhaoHuanfeng
 * @Date: 2020/12/4 22:14
 */
public interface UserService {

    /*
    用户分页&多条件查询
     */
    public PageInfo findAllUserByPage(UserVo userVo);

    /*
    用户登录
     */
    public User login(User user) throws Exception;

    /*
     分配角色(回显)
     */
    public List<Role> findUserRelationRoleById(Integer id);

    /*
    用户关联角色
     */
    public void userContextRole(UserVo userVo);

    /*
    获取用户权限进行菜单动态展示
     */
    public ResponseResult getUserPermissions(Integer userid);
}
